﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//using Data;

namespace Business {
    /// <summary>
    /// Class for checking user data
    /// </summary>
    public class CheckUser_Business {
        /// <summary>
        /// Create object of CheckUser_Access from DataAccess project
        /// </summary>
        DataAccess.CheckUser_Access objt = new DataAccess.CheckUser_Access();
        /// <summary>Create object to check user data</summary>
        /// <returns>return data of the requested user object</returns>
        public bool CheckUser(Data.CheckUser_Data obj) {
            return this.objt.Check_User(obj);
        }
    }

    public class CheckAdmin_Business {
        /// <summary>
        /// Create object of CheckAdmin_Access from DataAccess project
        /// </summary>
        DataAccess.CheckAdmin_Access objt = new DataAccess.CheckAdmin_Access();
        /// <summary>Create object to check Admin data</summary>
        /// <returns>return data of the requested Admin object</returns>
        public bool CheckAdmin(Data.CheckAdmin_Data obj) {
            return this.objt.Check_Admin(obj);
        }
    }
}
